package sctu.edu.java.year2016.team07.wenjia.day20160524.Chapter7_2;

/**
 * Created by 001 on 2016/5/24.
 * 尝试编写一个矩形类，将长与宽作为矩形类的属性在构造方法中将长、宽初始化，定义一个成员变量方法求此矩形的面积
 */
public class Text_1 {
    public static void main(String[]args){
        Acreage acreage=new Acreage(4,6);
        System.out.println("长："+acreage.getLength());
        System.out.println("宽："+acreage.getWideth());
        System.out.println("矩形面积："+acreage.getArea());
    }
}
